package com.bupt.datacollect.controller;

import com.bupt.datacollect.data.InvalidPacket;
import com.bupt.datacollect.mapper.InvalidPacketMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@Slf4j
public class PageController {
    @Autowired
    private InvalidPacketMapper invalidPacketMapper;

    @RequestMapping("/")
    public String index(){
        return "EchartsPageOne";
    }

    /*登录页面*/
    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    /*列表展示页面*/
    @RequestMapping("/listPage")
    public String listhtml() {
        return "listPage";
    }

    /*每辆车看自己的数据*/
    @RequestMapping("/meterList")
    public String meterList() {
        return "meterList";
    }
    /*每辆车看自己的数据*/
    @RequestMapping("/alarm")
    public String alarm() {
        return "alarm";
    }


    @RequestMapping("/echarts")
    public String echarts(){
        return "EchartsPageOne";
    }

}

